/**
 * 
 */
package helper;

import javax.swing.JTable;

import table.TableModel;
/**
 * @author Ken
 *
 */
public class TableHelper {
	public JTable modelProperty;
	public JTable modelData;
	public String tableName;
	public String databaseName;
	public boolean propertyEdited;
	public boolean dataEdited;
	
	public TableHelper(String tableName, String dbName, JTable prop, JTable data) {
		this.tableName = tableName;
		databaseName = dbName;
		modelProperty = prop;
		modelData = data;
		propertyEdited = false;
		dataEdited = false;
	}

	public void tableChangeValue(TableModel tableModel) {
		if (modelProperty.getModel() == tableModel)		
			propertyEdited = true;					
		else
			if (modelData.getModel() == tableModel)
				dataEdited = true;		
	}
}
